home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-11-19 | 540 b | 36 lines | [TEXT/MPCC] |
- // BWindow.cpp
-
- #include "BWindow.h"
- #include "OutPoint.h"
-
-
- struct DataDesc {
- long rowBytes;
- long rowSize;
- long numRows;
- long xPos;
- long yPos;
- unsigned char data[200]; // actually more...
- };
-
-
- void
- BWindow::ListenToMessage(
- MessageT message,
- void *ioPtr)
- {
- DataDesc random;
-
- if (message == 210 && aPoint) {
- random.rowBytes = 200;
- random.rowSize = 200;
- random.numRows = 1;
- random.xPos = 0;
- random.yPos = Random()&0x3f;
- OSErr err = aPoint->SendData(&random, sizeof(random));
- if (err == 4711) {
- throw err;
- }
- }
- }
-